package cn.yunhe.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Data
@Component
public class Printer {
    @Resource(name="colorInk")
    private Ink ink;
    @Resource(name="a4Paper")
    private Paper paper;

    public void prin(){

        System.out.println("运用");
        ink.printInkInfo();
        paper.printPaperInfo();
        System.out.println("来打印");
    }

}
